HR - Employees - REST API icon

HR - Employees - REST API

(0 reviews)

REST POST Compensation specification

This operation allows to send Compensation data to Taliris.

REQUEST

url: /rest/v1/hr/compensation

body: JSON format, containing all fields as below

Headers

The table below provide the details of the headers to be used when making the request.

Header NameDescription
client_idClient id having authorization to the endpoint(To be provided by DALI team)
client_secretClient secret having authorization to the endpoint(To be provided by DALI team)

Here is the format of the body that you should send:

{
    "HEADER": {
        "SOURCE_SYSTEM": {name of the source system},
        "TARGET_SYSTEM": {fixed value "DALI"},
        "TRANSACTION_ID": {functional identifier},
        "COMPANY_CODE": {ROC company code},
        "ANALYTICAL_CODE": {ROC BU code},
        "REQUEST_DATE_TIME": {datetime when the message is sent},
        "CORRELATION_ID": {technical ID used during all the transaction},
        "FLOW_NAME": {fixed value "COMPENSATION"},
        "DISPATCHING_KEY": {empty}
    },
    "PAYLOAD": {
        "COMPENSATION_MASTER_DATA": {
            "EMPLOYEE_ERP_ID": {ID of employee in the ERP source},
            "NBR_MONTH_PAY_TH": {theoretical number of months},
            "NBR_HOUR_PAY_TH": {theoretical number of hours},
            "COMPANY_ERP_ID": {local code of the company (in the erp)},
            "POTENTIAL_BONUS": {potential bonus},
            "PAYMENT_DATE": {payment date - format 'YYYY-MM-DD'},
            "UPDATE_DATE": {modication date - format 'YYYY-MM-DDTHH:MI:SSZ'},
            "OSMOSE_CODE": {osmose Code in ROC},
            "EFFECTIVE_DATE": {effective date - format 'YYYY-MM-DD'},
            "CALENDAR_MONTH": {calendar month},
            "PAYROLL_TRANSACTIONAL_DATA": [
                {
                    "AMOUNT": {amount for each payment rubric},
                    "TOP_RUBRIC": {payroll section],
                    "ACCOUNTING_PERIOD": {accounting period},
                    "COMPUTATION_PERIOD": {computation period},
                    "CURR_ISO_CD": {currency ISO code},
                    "NBR_MONTH": {number of months},
                    "PAYROLL_START_DATE": {first day of the payment month - format 'YYYY-MM-DD'},
                    "TRANSFER_DATE": {payment date - format 'YYYY-MM-DD'},
                    "COUNTRY_ISO_CODE": {ISO code of the country},
                    "PAYROLL_TRANCHE": {payroll tranche},
                    "EFFECTIVE_DATE": {effective date - format 'YYYY-MM-DD'},
                    "PAYROLL_END_DATE": {end day for payment month - format 'YYYY-MM-DD'},
                    "PAYMENT_DATE": {end day of the payment month - format 'YYYY-MM-DD'},
                    "PERIODICITY": {Frequency of the series - Fixed value : MONTHLY_AMOUNT}
                }
            ]
        }
    }
}

RESPONSE

Here is the response format:

{
  "ERROR": {
    "CODE": {error code},
    "DESCRIPTION": {error description},
    "DETAILS": {error details}
  }
}

The different possible responses are:

LEVELCODEDESCRIPTIONDETAILS
Application0SUCCESSSUCCESS
Technical500Remote Exception when calling the Serviceerror details
Technical401Authentication error-

MAPPING

Here are further informations on each field which is present in the request body:

BlockFieldTypeMandatoryDescriptionExample
HEADERSOURCE_SYSTEMstringYName of the Global ERP SOURCEAFAS_NL, SAGE_CIV, …
HEADERTARGET_SYSTEMstringYFixed value : DALIDALI
HEADERTRANSACTION_IDstringNFunctional Identifierab1251561-zdzdz2664-dz162262
HEADERCOMPANY_CODEstringYROC Company code - identifies the transaction of the payloadN022
HEADERANALYTICAL_CODEstringNROC BU code - identifies the transaction of the payload30022
HEADERREQUEST_DATE_TIMEdateTimeYTime when the request was made - format 'YYYY-MM-DDTHH:MI:SSZ'2023-04-30T18:30:33Z
HEADERCORRELATION_IDstringYTechnical unique identifier for each messagecb1251561-zdzdz2664-dz162262
HEADERFLOW_NAMEstringYFixed value : COMPENSATIONCOMPENSATION
HEADERDISPATCHING_KEYstringN
COMPENSATION_MASTER_DATAEMPLOYEE_ERP_IDstringYID of the employee in ERP7012160
COMPENSATION_MASTER_DATANBR_MONTH_PAY_THdecimalYTheoretical number of months12.5
COMPENSATION_MASTER_DATANBR_HOUR_PAY_THdecimalYTheoretical number of hours15.67
COMPENSATION_MASTER_DATACOMPANY_ERP_IDstringNLocal code of the company in ERPF20
COMPENSATION_MASTER_DATAPOTENTIAL_BONUSdecimalNPotential bonus5
COMPENSATION_MASTER_DATAPAYMENT_DATEdateYPayment date - format 'YYYY-MM-DD'2019-03-28
COMPENSATION_MASTER_DATAUPDATE_DATEdateTimeYModification date - format : 'YYYY-MM-DDTHH:MI:SSZ'
Rule: If HH:MM:SS is not present, 00:00:00 is hardcoded on our side
2023-04-30T10:53:00Z
COMPENSATION_MASTER_DATAOSMOSE_CODEstringYOsmose code in ROC27934
COMPENSATION_MASTER_DATAEFFECTIVE_DATEdateYEffective date - format 'YYYY-MM-DD'2015-01-01
COMPENSATION_MASTER_DATACALENDAR_MONTHstringYCalendar month - format 'YYYY-MM'201509
PAYROLL_TRANSACTIONAL_DATAAMOUNTdecimalYAmount for each payment rubric600
PAYROLL_TRANSACTIONAL_DATATOP_RUBRICstringYPayroll section:
Allowed values : PRIX, SALBAS, BONUS
SALBAS
PAYROLL_TRANSACTIONAL_DATAACCOUNTING_PERIODstringYAccounting period - format 'YYYY-MM'201506
PAYROLL_TRANSACTIONAL_DATACOMPUTATION_PERIODstringYComputation period - format 'YYYY-MM'201506
PAYROLL_TRANSACTIONAL_DATACURR_ISO_CDstringYcurrency ISO codeEUR
PAYROLL_TRANSACTIONAL_DATANBR_MONTHdecimalYNumber of months1
PAYROLL_TRANSACTIONAL_DATAPAYROLL_START_DATEdateYFirst day of the payment month - format 'YYYY-MM-DD'2016-01-01
PAYROLL_TRANSACTIONAL_DATATRANSFER_DATEdateYPayment date - format 'YYYY-MM-DD'2015-01-22
PAYROLL_TRANSACTIONAL_DATACOUNTRY_ISO_CODEstringYISO code of the countryNLD
PAYROLL_TRANSACTIONAL_DATAPAYROLL_TRANCHEstringNpayroll trancheZY
PAYROLL_TRANSACTIONAL_DATAEFFECTIVE_DATEdateYEffective date - format 'YYYY-MM-DD'2015-01-20
PAYROLL_TRANSACTIONAL_DATAPAYROLL_END_DATEdateYEnd day of the payment month - format 'YYYY-MM-DD'2015-01-30
PAYROLL_TRANSACTIONAL_DATAPAYMENT_DATEdateYEnd day of the payment month - format 'YYYY-MM-DD'2015-02-02
PAYROLL_TRANSACTIONAL_DATAPERIODICITYstringYFrequency of the series - Fixed value : MONTHLY_AMOUNTMONTHLY_AMOUNT

Reviews